package chapter06;

/**
 * Created by V5470-I5 on 2016/3/24.
 */
public class Airplane implements Swimmer ,Flyer {
private String name;
    public Airplane (String name){
        this.name=name;
    }
    @Override
    public void fly(){
        System.out.printf("海上飞机%s在飞%n",name);
    }
    @Override
    public void swim(){
        System.out.printf("海上飞机%s航行海面%n",name);
    }
}
